package com.xs.aifitnessagent.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 历史记录表
 *
 * @author lambor
 */
@TableName(value ="t_history")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class History implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**用户id**/
    private String userId;

    /**会话id**/
    private String chatId;

    /**标题**/
    private String title;

    /**智能体状态 健身 1 超级 2**/
    private Integer status;

    /**创建时间**/
    private Date createTime;

    /**更新时间**/
    private Date updateTime;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}